<template>
  <router-view></router-view>
</template>

<style lang="scss">
// @import 'https://aite.tankr.cn/hhg/hhg-common.css?v=1.1';
// @import 'https://aite.tankr.cn/hhg/hhg-layout.css?v=1.1';
// @import 'https://aite.tankr.cn/hhg/hhg-componentStyle.css?v=1.1';
</style>
<script setup>
//ResizeObserver在回调中检测到尺寸变化，并试图通知观察者，但是在新的尺寸可见性检测之前，浏览器不能完成所有的回调执行，导致无限循环
const ignoreErrors = ["ResizeObserver loop completed with undelivered notifications", "ResizeObserver loop limit exceeded"]
window.addEventListener('error', e => {
  let errorMsg = e.message
  ignoreErrors.forEach(m => {
    if (errorMsg.startsWith(m)) {
      console.error(errorMsg)
      if (e.error) {
        console.error(e.error.stack)
      }
      const resizeObserverErrDiv = document.getElementById('webpack-dev-server-client-overlay-div')
      const resizeObserverErr = document.getElementById('webpack-dev-server-client-overlay')
      if (resizeObserverErr) {
        resizeObserverErr.setAttribute('style', 'display: none')
      }
      if (resizeObserverErrDiv) {
        resizeObserverErrDiv.setAttribute('style', 'display: none')
      }
    }
  })
})
</script>